import java.rmi.server.UnicastRemoteObject;
import java.rmi.RemoteException;

public class Info extends UnicastRemoteObject implements InfoInterface {

	public int nbrePross;
	public String ligne;
	public String colonne;
	protected Info(int n, String a, String b) throws RemoteException {
		this.nbrePross = n;
		if(a.length() < b.length())
		{
			this.ligne = b;
			this.colonne = a;
		}
		else
		{
			this.ligne = a;
			this.colonne = b;
		}
	}

	@Override
	public int getNbrePross() {
		
		return nbrePross;
	}

	@Override
	public String getLigne() throws RemoteException {
		return this.ligne;
	}

	@Override
	public String getColonne() throws RemoteException {
		// TODO Auto-generated method stub
		return this.colonne;
	}
	
}